package data.composition.factory.core;

import java.util.Collection;
import java.util.function.Function;

/**
 * @author ZhangJinyu
 * @since 2024-12-13
 */
public interface DataComposition<T> {
    <R, V> FromWrapper<T, R, V> from(R source, Function<R, V> kv);

    <R, V> FromWrapper<T, R, V> from(Collection<R> source, Function<R, V> kv);

    void composition();
}
